import React from 'react'
import './styles/flip-timer.less'
import './styles/gift-modal.less'
import GiftProgress from './coms/GiftProgress'
import GiftResult from './coms/GiftResult'



export default class GiftModal extends React.Component {
  renderStep() {
    const {gift} = this.props
    if (gift.status === 1) {
      return <GiftProgress {...this.props}/>
    }
    if (gift.status === 2) {
      return <GiftResult {...this.props}/>
    }
    return null
  }
  render() {
    return (
      <div>
        {this.renderStep()}
      </div>
    )
  }
}
